#define DELETE_LIST_ITEMS(list_instance, pointer_type) for(std::list<pointer_type*>::iterator it = list_instance.begin();it != list_instance.end();++it) delete *it;